package com.mrd.gtimp.query.action;

import com.mrd.constant.WebPathConstants;

import org.springframework.stereotype.Component;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;


/**
 * <p> application name: gtimp <p> copyright: Copyright@2012 明睿达科技有限公司
 */

/**
 * @author luob
 */

@Component
@RequestMapping("/query")
public class QueryAction {
    private static final long serialVersionUID = 1L;
    private String left;
    private String right;
    private String title;

    @RequestMapping("/query-main")
    public String main(Model model) {
//        title = "信息查询";
//        left = "query-tree.do";
//        right = "";
        model.addAttribute("title", "信息查询");
        model.addAttribute("left", "query-tree");
        model.addAttribute("right", "");
        return WebPathConstants.FRAME_WEB_PATH;
    }

    @RequestMapping("/query-tree")
    public String tree() {
        return "/gtimp/query/tree";
    }

    public String getLeft() {
        return left;
    }

    public void setLeft(String left) {
        this.left = left;
    }

    public String getRight() {
        return right;
    }

    public void setRight(String right) {
        this.right = right;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }
}
